﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BeanboxSoftware.BeanProxy;

namespace BeanboxSoftware.BeanProxyTest
{
  [TestClass]
  public class TestUtilsTest
  {
    [TestMethod]
    public void AssertExceptionThrownTest()
    {
      TestUtils.AssertExceptionThrown<ArgumentException>(() =>
      {
        TestUtils.AssertExceptionThrown<Exception>(() => { });
      });


      TestUtils.AssertExceptionThrown<InvalidCastException>(() =>
      {
        TestUtils.AssertExceptionThrown<Exception>(() => { throw new NotImplementedException(); });
      });
    }
  }
}
